package wuji.pojo;

import java.io.Serializable;
import java.util.Objects;

public class User implements Serializable {

    private String username;
    private String upwd;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", upwd='" + upwd + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return Objects.equals(username, user.username) &&
                Objects.equals(upwd, user.upwd);
    }

    @Override
    public int hashCode() {

        return Objects.hash(username, upwd);
    }
}
